﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Clinica/MasterPageAtencion.master" AutoEventWireup="true" CodeFile="wfAtencionListado.aspx.cs" Inherits="Ventas_wfAtencionListado" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMenuSecundario" runat="Server">
    <li><a href="wfInterconsultaListado.aspx" class="">Interconsulta</a></li>
    <li><a href="wfAtencionListado.aspx" class="active">Atención</a></li>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ModuleTitleContent" runat="Server">
    Atención
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentEnlacesRapidos" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="Server">
      <ul class="tabs primary">
        <li><a href="wfAtencionListado.aspx">Listado de Atenciones</a></li>
        
    </ul>
    <h4>
        Listado de Atenciones</h4>
    <table width="99%">
        <tr>
            <td>
                <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="99%">
                    <panelcollection>
                        <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                            <table>
                                <tr>
                                    <td>
                                        <dx:ASPxButton ID="ASPxButton1" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                            Text="Agregar" OnClick="ASPxButton1_Click">
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="ASPxButton2" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                            Text="Modificar" OnClick="ASPxButton2_Click">
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btnEliminar" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                            Text="Eliminar" OnClick="btnEliminar_Click">
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </panelcollection>
                </dx:ASPxPanel>
            </td>
        </tr>
        <tr>
            <td>
                <dx:ASPxGridView ID="dgvAte_Atencion2" runat="server" ClientIDMode="AutoID" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    Width="99%" AutoGenerateColumns="False" 
                    onafterperformcallback="dgvAte_Atencion2_AfterPerformCallback" 
                    onpageindexchanged="dgvAte_Atencion2_PageIndexChanged" 
                    KeyFieldName="ATE_ID_ATENCION">
                    <columns>
                        <dx:GridViewDataTextColumn Caption="Fec. Ingreso" VisibleIndex="0" 
                            FieldName="ATE_FECHA_INGRESO">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Fec. Egreso" VisibleIndex="1" 
                            FieldName="ATE_FECHA_EGRESO">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Fec. Egreso Administrativo" 
                            VisibleIndex="2" FieldName="ATE_FECHA_EGRESO_ADMINISTRATIVO">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Descripción" VisibleIndex="3" 
                            FieldName="ATE_DESCRIPCION">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataCheckColumn Caption="Infecciones Intrahospitales" 
                            FieldName="ATE_FLAG_INFECCIONES_INTRAHOSPITALES" VisibleIndex="4">
                            <PropertiesCheckEdit DisplayTextChecked="Sí" DisplayTextUnchecked="No">
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesCheckEdit>
                        </dx:GridViewDataCheckColumn>
                        <dx:GridViewDataCheckColumn Caption="Necropsia" FieldName="ATE_FLAG_NECROPSIA" 
                            VisibleIndex="5">
                            <PropertiesCheckEdit DisplayTextChecked="Sí" DisplayTextUnchecked="No">
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesCheckEdit>
                        </dx:GridViewDataCheckColumn>
                        <dx:GridViewDataTextColumn FieldName="ATE_ID_ATENCION" Visible="False" 
                            VisibleIndex="7">
                        </dx:GridViewDataTextColumn>
                    </columns>
                    <SettingsBehavior AllowFocusedRow="True" />
                    <settingspager showdefaultimages="False">
                        <AllButton Text="All">
                        </AllButton>
                        <NextPageButton Text="Next &gt;">
                        </NextPageButton>
                        <PrevPageButton Text="&lt; Prev">
                        </PrevPageButton>
                    </settingspager>

<SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>

                    <images spritecssfilepath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                        <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                        </LoadingPanelOnStatusBar>
                        <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                        </LoadingPanel>
                    </images>
                    <imagesfiltercontrol>
                        <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                        </LoadingPanel>
                    </imagesfiltercontrol>
                    <styles cssfilepath="~/App_Themes/PlasticBlue/{0}/styles.css" csspostfix="PlasticBlue">
                        <Header ImageSpacing="10px" SortingImageSpacing="10px">
                        </Header>
                    </styles>
                    <styleseditors>
                        <CalendarHeader Spacing="11px">
                        </CalendarHeader>
                        <ProgressBar Height="25px">
                        </ProgressBar>
                    </styleseditors>
                </dx:ASPxGridView>









                <dx:ASPxPopupControl ID="pcMensaje" runat="server" Width="350px" AllowDragging="True"
                AllowResize="True" ClientInstanceName="pcMensaje" CloseAction="CloseButton" CssPostfix="PlasticBlue"
                HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                DragElement="Window">
                <HeaderImage Url="~/Imagenes/iconError.png" Width="20px">
                </HeaderImage>
                <HeaderStyle Font-Bold="True" />
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                        <table style="width: 100%;">
                            <tr>
                                <td class="Filas" align="center">
                                    <dx:ASPxLabel ID="lblMensaje" runat="server">
                                    </dx:ASPxLabel>
                                </td>
                            </tr>
                            <tr>
                                <td class="Filas" align="center">
                                    <dx:ASPxButton ID="btnPopAceptar" runat="server" Text="Aceptar" CssPostfix="PlasticBlue"
                                        AllowDragging="True" DragElement="Window" Font-Bold="True" AutoPostBack="False">
                                        <ClientSideEvents Click="function(s, e) {
	pcMensaje.Hide();
}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>



            </td>
        </tr>
    </table>
</asp:Content>
